package com.linkus.chain.way2;

import com.linkus.chain.way2.base.BaseHandlerChain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.List;

/**
 * 基于业务的控制器接口
 */
@Service
public class MyHandlerChain extends BaseHandlerChain<MyHandler, String, String> {

    @Autowired
    private List<MyHandler> myHandlers;

    @PostConstruct
    public void init(){
        setHandlerList(myHandlers);
    }
}
